package com.doit.day01;

import org.apache.commons.lang3.StringUtils;
import redis.clients.jedis.Jedis;

import java.util.UUID;

public class Producer {
    public static void main(String[] args) throws InterruptedException {

        Jedis jedis = new Jedis("linux01", 6379);

//        for (int i = 0; i < 100000; i++) {
//
//
//
//        }
        //生产代码
//        UUID uuid = UUID.randomUUID();
        //需要放在redis里面  list lpush
        jedis.lpush("producer_task","abc");
//        Thread.sleep(200);

    }
}
